package com.blog.service.dto;

import com.blog.dao.domain.JurisdictionDO;
import com.blog.dao.domain.ProfileDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户dto
 *
 * @author 泡面ing
 * @date 2021/11/17
 */
@Data
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * profile id
     */
    private String profileId;
    /**
     * 文书期刊id
     */
    private String jurId;
    /**
     * 禁用
     */
    private Boolean disable;
    /**
     * 禁用消息
     */
    private String disableMessage;
    /**
     * 电话号码
     */
    private String phoneNumber;
    /**
     * 电子邮件
     */
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    //    每个用户关联一个个人信息
    private ProfileDO profile;
    //    权限
    private JurisdictionDO jurisdiction;


}